home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1219 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  794 b 

  1. Subject: gdb-friendly tfork
  2. Date: Sun, 20 Mar 94 18:37:14 CET
  3. From: Juergen Lock <nox@jelal.north.de>
  4. Message-Id: <9403201737.AA00576@jelal.north.de>
  5.  
  6. patch this and gdb is no longer confused when you attach to tfork childs...
  7.  
  8. Index: thread.c
  9. @@ -72,6 +72,15 @@
  10.  #ifdef __MBASE__
  11.      fixmbasep((long) (b->p_bbase));
  12.  #endif /* __MBASE__ */
  13. +#if 1
  14. +    /* copy from parents basepage for debuggers... */
  15. +    b->p_tbase = _base->p_tbase;
  16. +    b->p_tlen = _base->p_tlen;
  17. +    b->p_dbase = _base->p_dbase;
  18. +    b->p_dlen = _base->p_dlen;
  19. +    b->p_bbase = _base->p_bbase;
  20. +    b->p_blen = _base->p_blen;
  21. +#endif
  22.      Pterm((*func)(arg));
  23.  }
  24.  
  25. -- 
  26. J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
  27.                                 ...ohne Gewehr
  28. PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA 
  29.